The slice method accepts an index or the combination of the starting and ending index as parameters, and then extracts and returns part of an array as a new array based on the arguments. slice方法接受索引或索引开始和结尾的组合作为参数,然后提取数组的一部分并基于参数将其作为新数组返回。
The right-hand expression of a range clause must be an array, slice, string or map, or a pointer to an array; or it may be a channel. range语句右边的表达式必须是array,slice,string或者map,或是指向array的指针,也可以是channel。
A slice represents a contiguous segment of an array, allowing a programmer to refer to specific sections of the underlying storage. 一个切片(slice)表示一个数组内的连续分段,支持程序员指定底层存储的明确部分。
The capacity of a slice s is the size of the array from s [ 0] to the end of the array, and is returned by the cap() built-in function. 切片s的容量是数组从s[0]到数组尾端的大小,并由内建的cap()函数返回。
Method Before volume rendering we transfer each slice of volume into an array indexed by the value of voxels, element in which stores the position of each voxel. 方法在体绘制前,将每个体数据的每个层片编码成以体素值为序的有序数组。